﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace elr_tracking_bal.ALM
{
    public class Track : INotifyPropertyChanged
    {
        private int _ID_TRACK;
        private CATALM.Almacen _ALMACEN;
        private Movimiento _MOVIMIENTO;
        private string _CANTIDAD;
        private DateTime _FECHA_TRACK;
        private CATALM.Solicitante _SOLICITANTE;
        private CATALM.Cliente _CLIENTE;
        private CATALM.Propiedad _PROPIEDAD;
        private string _TROUBLE_TICKET;
        private string _DIRECCION;
        private string _CONTACTO;
        private float _COSTO_ENVIO;
        private string _SITIO;
        private string _NOMBRE_SITIO;

        public int ID_TRACK
        {
            get
            {
                return _ID_TRACK;
            }
            set
            {
                if (_ID_TRACK != value)
                {
                    _ID_TRACK = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("ID_TRACK"));
                    }
                }
            }
        }

        public string CANTIDAD
        {
            get
            {
                return _CANTIDAD;
            }
            set
            {
                if (_CANTIDAD != value)
                {
                    _CANTIDAD = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("CANTIDAD"));
                    }
                }
            }
        }

        public DateTime FECHA_TRACK
        {
            get
            {
                return _FECHA_TRACK;
            }
            set
            {
                if (_FECHA_TRACK != value)
                {
                    _FECHA_TRACK = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("FECHA_TRACK"));
                    }
                }
            }
        }

        public string TROUBLE_TICKET
        {
            get
            {
                return _TROUBLE_TICKET;
            }
            set
            {
                if (_TROUBLE_TICKET != value)
                {
                    _TROUBLE_TICKET = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("TROUBLE_TICKET"));
                    }
                }
            }
        }

        public string DIRECCION
        {
            get
            {
                return _DIRECCION;
            }
            set
            {
                if (_DIRECCION != value)
                {
                    _DIRECCION = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("DIRECCION"));
                    }
                }
            }
        }

        public string CONTACTO
        {
            get
            {
                return _CONTACTO;
            }
            set
            {
                if (_CONTACTO != value)
                {
                    _CONTACTO = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("CONTACTO"));
                    }
                }
            }
        }

        public float COSTO_ENVIO
        {
            get
            {
                return _COSTO_ENVIO;
            }
            set
            {
                if (_COSTO_ENVIO != value)
                {
                    _COSTO_ENVIO = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("COSTO_ENVIO"));
                    }
                }
            }
        }

        public string SITIO
        {
            get
            {
                return _SITIO;
            }
            set
            {
                if (_SITIO != value)
                {
                    _SITIO = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("SITIO"));
                    }
                }
            }
        }

        public string NOMBRE_SITIO
        {
            get
            {
                return _NOMBRE_SITIO;
            }
            set
            {
                if (_NOMBRE_SITIO != value)
                {
                    _NOMBRE_SITIO = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("NOMBRE_SITIO"));
                    }
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
